import { createApp } from 'vue'
import { createPinia } from 'pinia'
import { usePermissionStore } from './stores/permission'
import './assets/main.css'
import 'ant-design-vue/dist/antd.less'
import App from './App'
import router from './router'

import '@/permission'
const app = createApp(App)

app.use(createPinia())
const userPermissionStore = usePermissionStore()
userPermissionStore.getUserPermission()
app.use(router)

app.mount('#app')
